1
0
mirror of https://github.com/actix/actix-website synced 2025-06-27 15:39:02 +02:00

updates Getting Started.

This commit is contained in:
Cameron Dershem
2019-06-18 16:44:43 -04:00
parent d762e83e74
commit 471d21b618
3 changed files with 9 additions and 10 deletions

View File

@ -1,6 +1,7 @@
[package]
name = "getting-started"
version = "0.7.0"
edition = "2018"
workspace = "../"
[dependencies]

View File

@ -1,8 +1,7 @@
// <setup>
extern crate actix_web;
use actix_web::{web, App, HttpRequest, HttpResponse, HttpServer};
use actix_web::{web, App, HttpRequest, HttpResponse, HttpServer, Responder};
fn index(_req: HttpRequest) -> HttpResponse {
fn index(_req: HttpRequest) -> impl Responder {
HttpResponse::Ok().body("Hello world!")
}
// </setup>