From fe820acd0802c3f43ab2dc9b57d8e67b44ddf533 Mon Sep 17 00:00:00 2001 From: kiritow <1362050620@qq.com> Date: Tue, 21 Nov 2017 16:09:25 +0800 Subject: [PATCH] Update CodePaste --- doPaste.cpp | 2 +- web/cgi-bin/paste_template.txt | 19 +++++++++++++++++++ web/paste/{new.html => index.html} | 0 3 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 web/cgi-bin/paste_template.txt rename web/paste/{new.html => index.html} (100%) diff --git a/doPaste.cpp b/doPaste.cpp index ce2dc3d..460cbb5 100644 --- a/doPaste.cpp +++ b/doPaste.cpp @@ -8,7 +8,7 @@ using namespace std; using json = nlohmann::json; -const string docroot = "D:\\Bitnami\\wampstack-5.6.31-0\\apache2\\htdocs\\"; +const string docroot = "C:\\Bitnami\\wampstack-5.6.25-0\\apache2\\htdocs\\"; int main() { diff --git a/web/cgi-bin/paste_template.txt b/web/cgi-bin/paste_template.txt new file mode 100644 index 0000000..8919760 --- /dev/null +++ b/web/cgi-bin/paste_template.txt @@ -0,0 +1,19 @@ + + + +{{Title}} + + + + + + + + + + +
+{{Code}}
+
+ + \ No newline at end of file diff --git a/web/paste/new.html b/web/paste/index.html similarity index 100% rename from web/paste/new.html rename to web/paste/index.html