فهرست منبع

Added API template

It was a button that was not working, made it work so people don't think
its broken, but something we haven't added.
Johand 10 سال پیش
والد
کامیت
762f5e6554
3فایلهای تغییر یافته به همراه17 افزوده شده و 1 حذف شده
  1. 4 0
      app/app.js
  2. 12 0
      app/templates/api.html
  3. 1 1
      app/templates/footer.html

+ 4 - 0
app/app.js

@@ -1711,6 +1711,10 @@ Router.route("/terms", {
     template: "terms"
 });
 
+Router.route("/api", {
+    template: "api"
+});
+
 Router.route("/privacy", {
     template: "privacy"
 });

+ 12 - 0
app/templates/api.html

@@ -0,0 +1,12 @@
+<template name="api">
+    <div class="landing">
+	    {{> header}}
+        <div class="row">
+            <div class="about col-md-8 col-md-offset-2">
+                <h2>API</h2>
+                <p>API documentation is under construction...</p>
+                <p>It's not our highest priority at the moment. So please be patient it will come soon.</p>
+            </div>
+        </div>
+    </div>
+</template>

+ 1 - 1
app/templates/footer.html

@@ -1,7 +1,7 @@
 <template name="footer">
     <footer>
         <p>Copyright © 2015 All Right Reserved</p>
-        <a class="footerButtons" id="apiButton">API |</a>
+        <a href="/api" class="footerButtons" id="apiButton">API |</a>
         <a href="/terms" class="footerButtons" id="termsButton">Terms |</a>
         <a href="/privacy" class="footerButtons" id="privacyButton">Privacy |</a>
         <a href="/about" class="footerButtons" id="aboutButton">About</a>