Skip to content
Snippets Groups Projects
Unverified Commit ec03627f authored by Paul's avatar Paul :turtle:
Browse files

first tests

parents
No related branches found
No related tags found
No related merge requests found
/target
This diff is collapsed.
[workspace]
members = [
"ffddns-web"
]
[package]
name = "ffddns-web"
version = "0.1.0"
authors = ["Paul Maruhn <paulmaruhn@posteo.de>"]
edition = "2018"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
rocket = "0.4.7"
#![feature(proc_macro_hygiene, decl_macro)]
use rocket;
use rocket::get;
use rocket::routes;
#[get("/update?<key>&<address>")]
fn index(key: String, address: Option<String>) -> String {
format!("{}: updating ip address to {:?}", key, address)
}
fn main() {
rocket::ignite()
.mount("/", routes![index])
.launch();
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment