Merge tag '0.2.7' into develop

no message
This commit is contained in:
Kilerd Chan 2019-04-28 15:16:57 +08:00
commit 5a18706160
3 changed files with 8 additions and 3 deletions

View File

@ -73,7 +73,13 @@ fn main() {
.service(routers::admin::admin_login)
.service(routers::admin::admin_authentication)
.service(routers::admin::article_creation)
.service(routers::admin::article_save)
.service(
web::resource("/article").route(
web::post()
.data(web::FormConfig::default().limit(256_000))
.to(routers::admin::article_save),
),
)
.service(routers::admin::article_edit)
.service(routers::admin::article_deletion)
.service(routers::admin::change_password)

View File

@ -129,7 +129,6 @@ pub fn article_edit(
}
}
#[post("/article")]
pub fn article_save(
id: Identity,
article: Form<NewArticle>,

View File

@ -14,7 +14,7 @@
<footer>
<section class="container">
<p> 自豪地使用 <a href="https://github.com/Kilerd/rubble">Project Rubble</a> 运行。 </p>
<div style="display:none">{{ setting.analysis }}</div>
<div style="display:none">{{ setting.analysis | safe }}</div>
</section>
</footer>
<script src="/statics/prism.js" type="text/javascript"></script>